<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>A New Greek Delectus</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>

<script type="text/javascript">
var words = [
  ['I believe.', 'πιστεύω.'],
  ['I will knock.', 'ἐγὼ κρούσω.'],
  ['Ye do not believe.', 'ὑμεῖς οὐ πιστεύετε.'],
  ['He ordered.', 'ἐκέλευε.'],
  ['That one weeped.', 'ἐκεῖνος ἐδάκρυσε.'],
  ['To have loosed.', 'λελυκέναι.'],
  ['You two are loosing.', 'σφῶϊ λύετον.'],
  ['Ye are knocking.', 'ὑμεῖς κρούετε.'],
  ['They will knocking.', 'κρούσουσι.'],
  ['They are knocking.', 'κρούουσι.'],
  ['Thou wilt believe.', 'πιστεύσεις.'],
  ['Thou sacrificedst.', 'σὺ ἔθυσας.'],
  ['Thou hast knocked.', 'κέκρουκας.'],
  ['They loosed.', 'ἔλυσαν.'],
  ['This man will believe.', 'οὗτος πιστεύσει.'],
  ['These men anointed.', 'οὗτοι ἔχρισαν.'],
  ['Who was weeping?', 'τίς ἐδάκρυε;'],
  ['Loose (now).', 'λῦσον.'],
  ['Let he order.', 'κελευσάτω.'],
  ['To have sacrificed.', 'τεθυκέναι.'],
  ['To be about to weep.', 'δακρύσειν.'],
  ['To have knocked.', 'κεκρουκέναι.'],
  ['Keep ordering.', 'κέλευε.'],
  ['May I keep believing.', 'πιστεύοιμι.'],
  ['May I weep (now).', 'δακρύσαιμι.'],
  ['May he believe (now).', 'πιστεύσαι.'],
  ['To believe.', 'πιστεῦσαι.'],
  ['To loose.', 'λῦσαι.'],
  ['May he loose (now).', 'λύσαι.'],
  ['May I have knocked.', 'κεκρούκοιμι.'],
  ['Having anointed.', 'κεχρικυῖα.'],
  ['You two are weeping.', 'σφὼ δακρύετον.']
];

var shown = 0;

function updateVoc() {
	var i = Math.floor(shown / 2);

	var j = shown % 2;

	if (j == 0) {
		document.getElementById('v3').innerHTML = words[i][0];
		document.getElementById('gk').innerHTML = "";
	} else if (j == 1) {
		document.getElementById('v3').innerHTML = words[i][0];
		document.getElementById('gk').innerHTML = words[i][1];
	}
}

function next() {
	shown++;
	if (shown > words.length * 2 - 1) {
		shown = 0;
		alert('All done!');
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = words.length * 2 - 1;
		alert('All done!');
	}
	updateVoc();
}

shuffle = function(o){ //v1.0
    for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
    return o;
};

shuffle(words);
</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">I</h1>

<div class="center">
<div id="blank" class="v2">&nbsp;</div>
<div id="v3" class="v3"></div>
<div id="blank" class="v2">&nbsp;</div>
<div id="gk" class="gk"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="button" onclick="location.reload();">new</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
